﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:sys="clr-namespace:System;assembly=mscorlib"
                    xmlns:loc="clr-namespace:WPFCanvas.CustomControls"
                    xmlns:s="clr-namespace:DiagramDesigner"
                    xmlns:c="clr-namespace:DiagramDesigner.Controls">
 
    
    <Style x:Key="QueryNode" TargetType="{x:Type loc:DrawItem}">
        <Setter Property="MinWidth" Value="50"/>
        <Setter Property="MinHeight" Value="50"/>
        <Setter Property="Width" Value="130"/>
        <Setter Property="Height" Value="140"/>
        <Setter Property="Background" Value="Red"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="s:DesignerItem.DragThumbTemplate">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type  c:DragThumb}">
                    <Grid>
                        <loc:QueryNodeView  DataContext="{Binding .}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

  

</ResourceDictionary>